package com.joycessh.search.index.service;

import com.joycessh.search.index.entity.Page;
import com.joycessh.search.index.entity.PageInfo;
import org.apache.lucene.queryparser.classic.ParseException;
import org.apache.lucene.search.highlight.InvalidTokenOffsetsException;

import java.io.IOException;
import java.util.List;

/**
 * @Author Joycessh
 * @Description
 * @Date 5/3/19 2:58 PM
 */
public interface IndexService {

    /**
     * 检索
     * @author Joycessh
     * @param pageNum
	 * @param pageSize
	 * @param value
     * @return java.util.List<com.joycessh.search.index.entity.Page>
     * @date 5/3/19 4:28 PM
     */
    PageInfo search(int pageNum, int pageSize, String value) throws IOException, ParseException, InvalidTokenOffsetsException;
}
